package com.sie.plm.rpm.standar.vo;

import io.swagger.annotations.ApiParam;

import java.math.BigInteger;

public class IbaObjVO {
    @ApiParam("待创建iba信息的对象oid")
    private BigInteger oid;
    @ApiParam("对应的逻辑标识符")
    private String logicalIdentifier;
    @ApiParam("待创建iba信息的对象otype")
    private String otype;

    public void setOid(BigInteger oid) {
        this.oid = oid;
    }

    public void setOtype(String otype) {
        this.otype = otype;
    }

    public void setLogicalIdentifier(String logicalIdentifier) {
        this.logicalIdentifier = logicalIdentifier;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof IbaObjVO)) {
            return false;
        }
        IbaObjVO other = (IbaObjVO) o;
        if (!other.canEqual(this)) return false;
        Object this$oid = getOid(), other$oid = other.getOid();
        if ((this$oid == null) ? (other$oid != null) : !this$oid.equals(other$oid)) return false;
        Object this$otype = getOtype(), other$otype = other.getOtype();
        if ((this$otype == null) ? (other$otype != null) : !this$otype.equals(other$otype)) return false;
        Object this$logicalIdentifier = getLogicalIdentifier(), other$logicalIdentifier = other.getLogicalIdentifier();
        return !((this$logicalIdentifier == null) ? (other$logicalIdentifier != null) : !this$logicalIdentifier.equals(other$logicalIdentifier));
    }

    protected boolean canEqual(Object other) {
        return other instanceof IbaObjVO;
    }

    public int hashCode() {
        int PRIME = 59,
        result = 1;
        Object $oid = getOid();
        result = result * 59 + (($oid == null) ? 43 : $oid.hashCode());
        Object $otype = getOtype();
        result = result * 59 + (($otype == null) ? 43 : $otype.hashCode());
        Object $logicalIdentifier = getLogicalIdentifier();
        return result * 59 + (($logicalIdentifier == null) ? 43 : $logicalIdentifier.hashCode());
    }

    public String toString() {
        return "IbaObjVO(oid=" + getOid() + ", otype=" + getOtype() + ", logicalIdentifier=" + getLogicalIdentifier() + ")";
    }


    public BigInteger getOid() {
        return this.oid;
    }


    public String getOtype() {
        return this.otype;
    }


    public String getLogicalIdentifier() {
        return this.logicalIdentifier;
    }
}
